package commands;

import utils.Clock;
import controllers.MetronomeController;

public class StopMetronomeCommand implements ICommand
{
	private MetronomeController metronomeController;
	
	/**
	 * Constructeur
	 * @param metronomeController : Le controller
	 */
	public StopMetronomeCommand(MetronomeController metronomeController)
	{
		this.metronomeController = metronomeController;
	}
	
	@Override
	public void execute() 
	{
		System.out.println("STOP");
		
		this.metronomeController.updateMetronomeState(false);
		Clock.StopBattreTempo();
	}
}
